package com.vae.virtualanimationexperiment.controller;

import com.vae.virtualanimationexperiment.domain.ResponseResult;
import com.vae.virtualanimationexperiment.service.InfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author LZH
 * @date 2023/3/6
 */
@CrossOrigin
@RestController
@RequestMapping("/info")
public class InfoController {

    @Resource
    private InfoService infoService;

    @PutMapping("/visit")
    public ResponseResult updateInfo() {
        return infoService.updateInfo();
    }

    @GetMapping
    public ResponseResult getInfo() {
        return infoService.getInfo();
    }
}
